package Homework;

import java.util.concurrent.ArrayBlockingQueue;

public class Demo02 {

	public static void main(String[] args) {
		ArrayBlockingQueue<String> array=new ArrayBlockingQueue<>(1);
		
		Producter c=new Producter(array);
		Consumer f=new Consumer(array);
		c.start();
		try {
			Thread.sleep(300);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		f.start();
	}

}
